package com.nf.server;

import com.nf.dao.StudentDao;
import com.nf.entity.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
@Scope("prototype")
public class StudentServerImpl implements StudentServer{
    @Autowired
    private StudentDao studentDao=null;
    public List<Student> getAllStudent() {
        List<Student> allStudent = studentDao.getAllStudent();
        return allStudent;
    }
}
